package com.seeyon.apps.reimburseplugin.rest;

import java.util.HashMap;
import java.util.Map;

import com.seeyon.client.CTPRestClient;
import com.seeyon.ctp.util.json.JSONUtil;

public class Test {
	
	public static void main(String[] args) {
		CTPRestClient client = ClientResource.getInstance().resouresClent("");
		String json = "{\"startUser\":\"seeyon\",\"formdata\":{\"vbillcode\":\"QG2023081500000004\",\"approver\":\"31027\",\"ctrantypeid\":\"20-Cxx-02\",\"fbillstatus\":\"3\",\"dbilldate\":\"2023-08-15 11:33:42\",\"vdef1\":\"null\",\"vbdef2\":\"123\",\"vdef3\":\"123\",\"vdef4\":\"1231\",\"vdef5\":\"null\",\"vdef6\":\"null\",\"vdef7\":\"null\",\"vdef8\":\"null\",\"vdef9\":\"null\",\"vdef10\":\"null\",\"vdef11\":\"null\",\"vdef12\":\"null\",\"vbdef13\":\"null\",\"vdef14\":\"null\",\"vdef15\":\"null\",\"vdef16\":\"null\",\"vdef17\":\"null\",\"vdef18\":\"\",\"vdef19\":\"\",\"vdef20\":\"\",\"pk_org\":\"0001\",\"name\":\"娴嬭瘯璁惧\",\"pk_reqdept_v\":\"112601\",\"vbdef1\":\"null\",\"nastnum\":\"1\",\"ntaxprice\":\"0.50\"}}";
		Map<String,Object> param = JSONUtil.parseJSONString(json, Map.class);
		String result = client.post("fyflow/process/start", param, String.class);
		System.out.println(result);
	
	}

}
